#define _CRT_SECURE_NO_WARNINGS 1
int removeDuplicates(int* nums, int numsSize) {
    if (numsSize == 0)
    {
        return 0;
    }
    int k = 0;
    //int n=numsSize;
    for (int i = 0; i < numsSize; i++)
    {
        if (nums[i] != nums[k])
        {
            k += 1;
            nums[k] = nums[i];
        }
        /*else
        {
            n--;
        }*/
    }
    return k + 1;
    //return n;
}